
<!DOCTYPE html>
<html style="overflow-x: hidden; overflow-y: scroll;" xmlns="http://www.w3.org/1999/xhtml">
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Pragma" content="no-cache"/>
		<meta http-equiv="Cache-Control" content="no-cache"/>
		<meta http-equiv="Expires" content="0"/>
		<meta content="width=device-width; initial-scale=1.0,maximum-scale=1.0,user-scalable=no;" name="viewport" />	
		<meta content="telephone=no" name="format-detection" />	
		<meta name="keywords" content="{obj('base/Base')->SEO('index_keywords')}" />
        <meta name="description" content="{obj('base/Base')->SEO('index_dec')}" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-touch-fullscreen" content="YES"/>
		<title>{$view['title']}- {$mall['name']} | {obj('base/Base')->SEO('index_title')}</title>
		<link media="all" rel="stylesheet" type="text/css" href="{__PUBLIC__}m/css/mstyle_201710191953.css" />
		<link media="all" rel="stylesheet" type="text/css" href="{__PUBLIC__}m/css/mdetailfix_201710191954.css" />
	</head>
	<body>
		<div id="wrapper">
        {if $_GET['app']!="yes"}
			<div id="opentip">
				<img class="opentipimg" src=""/>
			</div>
			<div id="header">
				<img class="dheaderpic" id="toindex" src="{__PUBLIC__}m/images/dheader.png?v=06012111" />
				<img class="rightslogan" src="{__PUBLIC__}m/images/rightslogan.png?v=0215" />
			</div>
            {/if}
			
            <div class="mdmain">	
				<a class="mdtitle"  isconvert="1" onmousedown="xlog('{$view['id']}','mdetailtitle')"   href="{$tolink}" target="_blank"><?php
         preg_match_all('/￥[1-9]\d*/', $view['productName'], $keyword);
         if(empty($keyword['0']['0'])){
         preg_match_all('/[1-9]\d*.[1-9]\d*元/',  $view['productName'], $keyword);
         }
         if(empty($keyword['0']['0'])){
         preg_match_all('/[1-9]\d*元/', $view['productName'], $keyword);
         }
         
         echo str_replace($keyword['0']['0'],"<font class='emphricepart'>".$keyword['0']['0']."</font>",$view['productName'])
         
         ?>		</a>
				<div class="clear"></div>
				<div class="mdinfo">
					<span style="color:#5db95b">{$view['mallName']}&nbsp;·&nbsp;</span>
					<span style="color:#bcbcbc"><span class="latesttime">{obj("api/Api")->mdate($view['date'])}</span>自动从{$view['mallName']}同步</span>
				</div>
				<div class="clear"></div>
				
								<div class="clear"></div>
				<div class="mdabstract" id="mdabstract">
										<div class="huihuidetail"> <div class="editor-mod">{$view['productName']}</div> </div>				</div>
				<div class="clear"></div>
								<a class="mdgotobutton"  isconvert="1"  id="mdgotobutton" onmousedown="xlog('{$view['id']}','mdetailbtn')" href="{$tolink}" target="_blank"><span class="mdgotobuttonword">去购买&nbsp;&gt;</span></a>
								<div class="middleline">
                                {if $_GET['app']!="yes"}
					<span id="topc" class="dtopc">查看此条电脑版&gt;</span>
                    {/if}
				</div>
			</div>
			<div id="footer"></div>	
		</div>


     <script src="{__PUBLIC__}web/js/jquery-1.9.1.min.js"></script>
	<script type='text/javascript'>

	$(function(){
		$("a").click(function(){
			if($(this).attr("href").indexOf("void") != -1)
			{
				$("#opentip").show();
			}
	　　});

		$("#topc").click(function(){
			window.location.href='{url($route='index/view/index/id=<id>', $params=array("id"=>$view['id']))}';
	　　});

		$("#toindex").click(function(){
			window.location.href='{url($route='index/m/index', $params=array())}';
	　　});
	});
	
	function xlog(id,pos)
	{
		var urlwithpara="index.php?r=index/index/log&id="+id+"&pos="+pos;
		$.ajax({  
			type: "get",  
			async: false,
			url: urlwithpara,  
			dataType: "jsonp",  
			success: function(data){
			//alert(data.data);  
			},  
			error: function(){  
			//alert('fail');  
			}  
		});
	}
	
	
	</script>
{base64_decode(obj('base/Base')->SiteConfig('tongji'))}
    </body>
</html>


